package com.Entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Category entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "category", catalog = "smartsofa")
public class Category implements java.io.Serializable {

	// Fields

	private short categoryId;
	private String categoryName;

	// Constructors

	/** default constructor */
	public Category() {
	}

	/** minimal constructor */
	public Category(short categoryId) {
		this.categoryId = categoryId;
	}

	/** full constructor */
	public Category(short categoryId, String categoryName) {
		this.categoryId = categoryId;
		this.categoryName = categoryName;
	}

	// Property accessors
	@Id
	@Column(name = "categoryId", unique = true, nullable = false)
	public short getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(short categoryId) {
		this.categoryId = categoryId;
	}

	@Column(name = "categoryName", length = 20)
	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

}